<include file="../Public/header" />
<script>
var LANGUAGE_NAME = '{$lang}';
</script>
<link href="__PUBLIC__/themes/blue/layout.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="__PUBLIC__/js/json2select.js"></script>

<link href="__PUBLIC__/js/kissy/themes/default/editor-min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/kissy/neweditor.js"></script>
</head><body>

<div id="container" style="width:100%">
<form method="POST" id="basic_setting" name="form" action="{:U('admin/Cms/update')}">
<TABLE cellpadding=3 cellspacing=3 class="form" width="100%">

<TR>
	<TD width="100" height="30" align="center"  >标题：</TD>
	<TD height="30" align="left"  ><INPUT TYPE="text" class="bLeftRequire"  check='Require' warning="标题不能为空" size="50" NAME="title" value="{$vo.title}"></TD>
</TR>

<TR>
	<TD width="100" height="30" align="center"  >内容：</TD>
	<TD height="30" align="left" >
	  <textarea name="content" cols="100" rows="30" id="content">{$vo.content}</textarea>
     </TD>
</TR>

<TR>
	<TD width="100" height="30" align="center" >分类：</TD>
	<TD height="30" align="left" class="center"><div id="category"></div></TD>
</TR>
<TR>
  <TD width="100" height="30" align="center" >作者：</TD>
  <TD height="30" align="left" class="center"><span >
    <input type="text" class="large bLeftRequire" name="author" value="{$vo.author}" />
  </span></TD>
</TR>
<TR>
	<TD width="100" height="30" align="center"  >链接：</TD>
	<TD height="30" align="left"  ><INPUT TYPE="text" class="bLeftRequire" size="92" NAME="url" value="{$vo.url}"></TD>
</TR>
<TR>
  <TD width="100" height="30" align="center" ></TD>
  <TD height="30" align="left" class="center">
  	<INPUT TYPE="hidden" name="id" value="{$vo.id}" >
	<INPUT TYPE="submit" value="保 存" class="small submit">
	<INPUT TYPE="reset" class="submit  small" value="清 空" >
  </TD>
</TR>
</TABLE>
</form>
</div>

</body>
</html>
<script>

$(document).ready(function(){
	E	=	KISSY.Editor( "content" );	
	
	var category_json={$category_json};
	$("#category").json2select(category_json,[{$vo.cate_tree}],'category');	
}); 
</script>